package com.kevin.learn.leetcode;

import java.util.regex.Pattern;

public class PatternDemo {

    public static void main(String[] args) {
        String content = "0";

        String pattern = "[0-1]";

        boolean isMatch = Pattern.matches(pattern, content);
        System.out.println("字符串中是否包含了 'runoob' 子字符串? " + isMatch);
    }
}
